package cn.wolfcode.crm.util;

import com.fasterxml.jackson.databind.ObjectMapper;

public class JSONUtil {
	public static ObjectMapper mapper = new ObjectMapper();
	
	public static String toJSONString(Object obj) {
		try {
			return mapper.writeValueAsString(obj);
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
}
